package models;

import java.util.*;

import javax.persistence.*;

import org.bouncycastle.asn1.cms.Time;

import play.db.jpa.*;

@Entity
public class Comment extends Model {
	public double rating;
	@Lob
	public String content;
	public String time;
	@ManyToOne
	Idea idea;
	@ManyToOne
	User creator;
	@OneToOne
	ActionLog generatedLog;
	@OneToMany
	List<Notification> generatedNotifications;

	public Comment(double rating, String content, String time, User creator,
			Idea idea, ActionLog generatedLog) {
		this.rating = rating;
		this.content = content;
		this.time = time;
		this.creator = creator;
		this.idea = idea;
		this.generatedLog = generatedLog;
		this.generatedNotifications = new ArrayList<Notification>();
	}
}
